package com.ym.jiujiangeyou.util;

/**
 * @author 叶铭
 * @email yeming_1001@163.com
 * @version V1.0 
 * @author 叶铭
 * @Description: 常量工具类 
 */
public class Constants {

	public Constants() {
	}

    /** 
    * @Fields CONNECTION_TIMEOUT : 超时信息 
    */  
    public final static String CONNECTION_TIMEOUT = "CONNECTION_TIMEOUT" ;
	
	
	/** 
	* @Fields LOCA_FILE_NAME : //天气信息常量
	*/  
	//public final static String LOCA_FILE_NAME = "locations.json";
	public final static String SIMPLEWEATHER_FILE_CACHE = "SimpleWeather.json" ;
	public final static String WEATHER_FILE_CACHE = "Weather.json" ;
	
	public final static String URL_SIMPLE_WEATHER = "http://www.weather.com.cn/data/sk/${code}.html";
	// public final static String URL_TODAY =
	// "http://www.weather.com.cn/data/cityinfo/${code}.html";
	public final static String URL_SIX_WEATHER = "http://m.weather.com.cn/data/${code}.html";
	
	public static final int REFRESH_WEATHER_RESULT = 0x21;
	public static final int GET_WEATHER_RESULT = 0x23;
	public static final int UPDATE_EXISTS_CITY = 0x22;
	/** 
	* @Fields CITY_CODE : 九江代码 
	*/  
	public final static String CITY_CODE = "101240201";
	
	/** 
	* @Fields LUSHAN_CODE : 庐山代码
	*/  
	public final static String LUSHAN_CODE = "101240203" ;
	
	/** 
	* @Fields PAGE_SIZE : 加载数目 
	*/  
	public final static int PAGE_SIZE = 13 ;
	/** 
	* @Fields LISTVIEW_ACTION_FIRST : list第一次加载 
	*/  
	public final static int LISTVIEW_ACTION_FIRST = 0x01 ;
	/** 
	* @Fields LISTVIEW_ACTION_SCROLL : 滑动 加载 
	*/  
	public final static int LISTVIEW_ACTION_SCROLL = 0x02;
	
	/** 
	* @Fields LISTVIEW_ACTION_GET_ERROR : 加载出错 
	*/  
	public final static int LISTVIEW_ACTION_GET_ERROR = 0x03 ;
	
	/**                                                      //  http://nmxx.v162.10000net.cn  -> 192.168.23.1:8080
	* @Fields GET_SCENERY_AND_GUIDE_URL : 景点与攻略url 
	*/  
	public final static String GET_SCENERY_AND_GUIDE_URL = "http://192.168.23.1:8080/JiuJiangEYou/APISceneryList?pageNum=" ;
	/** 
	* @Fields SEARCH_SCENERY_AND_GUIDE_URL : 查找景点url 
	*/  
	public final static String SEARCH_SCENERY_AND_GUIDE_URL = "http://192.168.23.1:8080/JiuJiangEYou/APIScenerySearchList?sname=" ;
	/** 
	* @Fields GET_UPDATE_INFO_URL : 获取更新信息url 
	*/  
	public final static String GET_UPDATE_INFO_URL = "http://192.168.23.1:8080/JiuJiangEYou/APIInstallMessage" ;
	
	/** 
	* @Fields GET_HOTEL_URL : 住宿列表url 
	*/  
	public final static String GET_HOTEL_URL = "http://192.168.23.1:8080/JiuJiangEYou/APIHotelList?pageNum=" ;
	
	/** 
	* @Fields SEARCH_HOTEL_URL : 查找住宿url 
	*/  
	public final static String SEARCH_HOTEL_URL = "http://192.168.23.1:8080/JiuJiangEYou/APIHotelSearchList?hname=" ;
	
	/** 
	* @Fields SEND_MESSAGE_URL : 提交反馈url 
	*/  
	public final static String SEND_MESSAGE_URL = "http://192.168.23.1:8080/JiuJiangEYou/SaveFeedBack" ;
	
	/** 
	* @Fields GET_TRAFFIC_INFO : 获取交通信息url 
	*/  
	public final static String GET_TRAFFIC_INFO = "http://192.168.23.1:8080/JiuJiangEYou/APITraffic" ;
	/** 
	* @Fields GET_INTRODUCTION_INFO : 介绍信息url 
	*/  
	public final static String GET_INTRODUCTION_INFO = "http://192.168.23.1:8080/JiuJiangEYou/APIIntroduction" ;
	
	/** 
	* @Fields GET_FOOD_URL : 获取美食url 
	*/  
	public final static String GET_FOOD_URL = "http://192.168.23.1:8080/JiuJiangEYou/APIFoodList?pageNum=" ;
	
	/** 
	* @Fields GET_SCENERY_PIC_URL : 根据 id获取景点图片url
	*/  
	public final static String GET_SCENERY_PIC_URL = "http://192.168.23.1:8080/JiuJiangEYou/SceneryPicList?id=" ;
	
	/** 
	* @Fields GET_HOTEL_PIC_URL :根据 id获取hotel图片url
	*/  
	public final static String GET_HOTEL_PIC_URL = "http://192.168.23.1:8080/JiuJiangEYou/HotelPicList?id=" ;
	
	/** 
	* @Fields GET_MINE_PUP_ONE : pup 贴士信息url
	*/  
	public final static String GET_MINE_PUP = "http://192.168.23.1:8080/JiuJiangEYou/APIMineMessage?flag=" ;
	/** 
	* @Fields MAP_LOAD_FINISH : 地图加载完成标志
	*/  
	public final static int MAP_LOAD_FINISH = 0x04 ;
	
	/** 
	* @Fields MAP_LOCATION_FINISH : 定位完成
	*/  
	public final static int MAP_LOCATION_FINISH = 0x05 ;
	
	/** 
	* @Fields SCENERY_COLLECT_SUCCESS : 收藏成功
	*/  
	public final static int SCENERY_COLLECT_SUCCESS = 0x06 ;
	/** 
	* @Fields SCENERY_COLLECT_ERROR : 搜藏保存出错 
	*/  
	public final static int SCENERY_COLLECT_ERROR = 0x07 ;
	
	/** 
	* @Fields SCENERY_COLLECT_ALREADY : 已经收藏过 
	*/  
	public final static int SCENERY_COLLECT_ALREADY = 0x08 ;
	/** 
	* @Fields SCENERY_COLLECT_NOT : 未收藏
	*/  
	public final static int SCENERY_COLLECT_NOT = 0x09 ;
	/** 
	* @Fields LISTVIEW_ACTION_GET_SCENERY : 加载收藏的景点列表 
	*/  
	public final static int LISTVIEW_ACTION_GET_SCENERY = 0x10 ;
	/** 
	* @Fields LISTVIEW_ACTION_GET_HOTEL : 加载收藏的主速列表 
	*/  
	public final static int LISTVIEW_ACTION_GET_HOTEL = 0x11 ;
	/** 
	* @Fields LISTVIEW_ACTION_SEARCH : 加载搜索列表 
	*/  
	public final static int LISTVIEW_ACTION_SEARCH = 0x12 ;
	/** 
	* @Fields HTTP_REQUEST_ERROR : 网络请求失败 
	*/  
	public final static int HTTP_REQUEST_ERROR = 0x13 ;
	/** 
	* @Fields HTTP_REQUEST_SUCCESS : 网络请求成功
	*/  
	public final static int HTTP_REQUEST_SUCCESS = 0x14 ;
	
	/** 
	* @Fields CLEAR_CACHE_SUCCESS : 清除缓存成功
	*/  
	public final static int CLEAR_CACHE_SUCCESS = 0x15 ;
	
	/** 
	* @Fields OPTION_FAIL : 操作失败 
	*/  
	public final static int OPTION_FAIL = 0x16 ;
	/** 
	* @Fields OPTION_SUCCESS : 操作成功
	*/  
	public final static int OPTION_SUCCESS = 0x17 ;
	
	/** 
	* @Fields LISTVIEW_ACTION_GET_HOTEL_AGIAN : 再次加载 
	*/  
	public final static int LISTVIEW_ACTION_GET_HOTEL_AGIAN = 0x18 ;
	
	/** 
	* @Fields LIST_COLLECT_IS_DEL : 收藏列表删除标志 
	*/  
	public  final static int LIST_COLLECT_IS_DEL = 0x19 ;
	
	/** 
	* @Fields LIST_COLLECT_NO_DEL : 收藏列表退出删除标志  
	*/  
	public final static int LIST_COLLECT_NO_DEL = 0x20 ;
	
	//public final static String OPTION_SUCCESS = "SUCCESS" ;
	//public final static String OPTION_FAIL = "FAIL" ;
	
	// 导航相关
	/** 
	* @Fields NAVI_START_LAT : 导航起点lat 
	*/  
	public static double NAVI_START_LAT = 0.00 ;
	/** 
	* @Fields NAVI_START_LON : 导航起点lon 
	*/  
	public static double NAVI_START_LON = 0.00 ;
	/** 
	* @Fields NAVI_END_LAT : 导航终点lat  
	*/  
	public static double NAVI_END_LAT = 0.00 ;
	/** 
	* @Fields NAVI_END_LON : 导航终点lon 
	*/  
	public static double NAVI_END_LON = 0.00 ;
	/** 
	* @Fields NAVI_START_NAME : 导航起点名称  
	*/  
	public static String NAVI_START_NAME = null ;
	/** 
	* @Fields NAVI_END_NAME : 导航终点名称 
	*/  
	public static String NAVI_END_NAME = null ;
	
	/** SDK验证密钥 */
    public final static String ACCESS_KEY = "loeNpBN1zReiM7xmNQUuD8ng";
    public static final String CATEGORY_SDK_DEMO = "android.intent.category.BAIDUNAVISDK_DEMO";
	
	
}
